<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages.Administration, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.TimerJobsPage" MasterPageFile="~/_admin/admin.master"      %> 
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="AdminControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint.ApplicationPages.Administration" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	Timer Job Management
</asp:content>

<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	Timer Job Management
</asp:Content>

<asp:content ID="Content3" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
	<SharePoint:HtcMenuClientFiles ID="HtcMenuClientFiles1" runat="server"/>
	<script language="javascript">
		function NavigateToView(viewId)
		{
			var url = window.location.href + "";
			url = StURLSetVar2(url, "View", viewId);
			STSNavigate(url);
		}
	</script>
</asp:content>

<asp:content ID="Content4" contentplaceholderid="PlaceHolderMain" runat="server">
	<table width="100%" class="propertysheet" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="ms-descriptionText"> <asp:Label ID="LabelMessage" Runat="server" EnableViewState="False" class="ms-descriptionText"/> </td> </tr> <tr> <td class="ms-error"><asp:Label ID="LabelErrorMessage" Runat="server" EnableViewState="False" /></td> </tr> <tr> <td class="ms-descriptionText"> <asp:ValidationSummary ID="ValSummary" HeaderText="<%$SPHtmlEncodedResources:spadmin, ValidationSummaryHeaderText%>" DisplayMode="BulletList" ShowSummary="True" runat="server"> </asp:ValidationSummary> </td> </tr> <tr> <td><img src="/_layouts/images/blank.gif" width="10" height="1" alt="" /></td> </tr> </table>
	<wssuc:ToolBar runat="server" id="ToolBar" CssClass="ms-toolbar">
		<Template_RightButtons>
			<SharePoint:WebApplicationSelector id="WebApplicationSelector" runat="server"
				TypeLabelCssClass="ms-listheaderlabel" />
			<AdminControls:ServiceSelector id="ServiceSelector" runat="server"
				TypeLabelCssClass="ms-listheaderlabel" />
			<asp:PlaceHolder runat="server">
			 <table border=0 cellpadding=0 cellspacing=0 style='margin-right: 4px'>
			  <tr>
			   <td>&nbsp;</td>
			   <td nowrap class="ms-listheaderlabel"><SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="<%$Resources:wss,view_selector_view%>" EncodeMethod="HtmlEncode"/></td>
			   <td>&nbsp;</td>
			   <td nowrap class="ms-viewselector">
				<SharePoint:Menu id="MenuViewSelector" runat="server"
					TemplateId = "MenuTemplateView"
					MenuFormat="ArrowAlwaysVisible"
					HoverCellActiveCssClass = "ms-viewselectorhover"
					HoverCellInActiveCssClass = "ms-viewselector"
					ArrowImageUrl="/_layouts/images/blank.gif"
					/>
				<SharePoint:MenuTemplate id="MenuTemplateView" runat="server">
					<SharePoint:MenuItemTemplate id="MenuItemAll" runat="server"
						Text="<%$Resources:spadmin, ServiceRunningJobs_All%>"
						ClientOnClickScript="return NavigateToView('0');"
						MenuGroupId="100"
						Sequence="100"
						/>
					<SharePoint:MenuItemTemplate id="MenuItemService" runat="server"
						Text="<%$Resources:spadmin, Service%>"
						ClientOnClickScript="return NavigateToView('1');"
						MenuGroupId="100"
						Sequence="200"
						/>
					<SharePoint:MenuItemTemplate id="MenuItemWebApplication" runat="server"
						Text="<%$Resources:spadmin, ServiceJobDefinitions_WebApplicationColumn%>"
						ClientOnClickScript="return NavigateToView('2');"
						MenuGroupId="100"
						Sequence="300"
						/>
				</SharePoint:MenuTemplate>
			   </td>
			  </tr>
			  </table>
			</asp:PlaceHolder>
		</Template_RightButtons>
	</wssuc:ToolBar>
	<AdminControls:AdministrationDataSourceControl runat="server"
		ID="JobDefinitionsDS" ViewName="JobDefinitions" >
		<SelectParameters>
			<AdminControls:MasterPageControlParameter
				Name="WebApplicationId"
				ControlId="PlaceHolderMain$ToolBar$RightRptControls$WebApplicationSelector"
				PropertyName="CurrentId" />
			<AdminControls:MasterPageControlParameter
				Name="ServiceId"
				ControlId="PlaceHolderMain$ToolBar$RightRptControls$ServiceSelector"
				PropertyName="CurrentId" />
			<asp:QueryStringParameter Name="View" QueryStringField="View" />
		</SelectParameters>
	</AdminControls:AdministrationDataSourceControl>
	<SharePoint:SPGridView
		id="GvItems"
		runat="server"
		AutoGenerateColumns="false"
		width="100%"
		AllowSorting="True"
		DataSourceId="JobDefinitionsDS" >
	  <AlternatingRowStyle CssClass="ms-alternating" />
	  <Columns>
		<asp:TemplateField
			HeaderText="<%$SPHtmlEncodedResources:spadmin, ServiceJobDefinitions_TitleColumn%>"
			SortExpression="ItemName">
			<ItemTemplate>
				<a href='<%# SPHttpUtility.HtmlUrlAttributeEncode(DataBinder.Eval(Container.DataItem, "ManageLink").ToString().Replace("_admin", "_admin/c2") + "&Source="+Request.Url.ToString()) %>'>
				 <%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "ItemName").ToString()) %></a>
			</ItemTemplate>
		</asp:TemplateField>
		<asp:TemplateField
			HeaderText="<%$SPHtmlEncodedResources:spadmin, ServiceJobDefinitions_WebApplicationColumn%>"
			SortExpression="WebApplication">
			<ItemTemplate>
				<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "WebApplication").ToString()) %>
			</ItemTemplate>
		</asp:TemplateField>
		<asp:TemplateField
			HeaderText="<%$SPHtmlEncodedResources:spadmin, ServiceJobDefinitions_ScheduleColumn%>"
			SortExpression="Schedule">
			<ItemTemplate>
				<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "Schedule").ToString()) %>
			</ItemTemplate>
		</asp:TemplateField>
	  </Columns>
	</SharePoint:SPGridView>	
 </asp:content>